﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using FreeSql.DataAnnotations;
using Newtonsoft.Json;

namespace Bzzb.Model
{
    [Table(Name = "guzhangpaichuxinxi")]
    public class GuZhangPaiChuXinXi
    {
        [Column(IsIdentity = true, IsPrimary = true, Name = "id")]
        [JsonProperty("id")]
        public long Id { get; set; }

        [Column(Name = "name")]
        [JsonProperty("name")]
        public string Name { get; set; }

        [Column(Name = "qian")]
        [Description("前4位")]
        [JsonProperty("qian")]
        public long Qian { get; set; }

        [Column(Name = "zhong")]
        [Description("中3位")]
        [JsonProperty("zhong")]
        public long Zhong { get; set; }

        [Column(Name = "clfieldinfo")]
        [Description("车辆字段信息json格式")]
        [JsonProperty("clfieldinfo")]
        public string Clfieldinfo { get; set; }

        [Column(Name = "clgzfieldinfo")]
        [Description("车辆故障字段信息json格式")]
        [JsonProperty("clgzfieldinfo")]
        public string Clgzfieldinfo { get; set; }

        [Column(Name = "created", ServerTime = DateTimeKind.Local, CanUpdate = false, DbType = "datetime(0) NOT NULL")]
        [JsonProperty("created")]
        public DateTime Created { get; set; }

        [Column(Name= "updated", ServerTime = DateTimeKind.Local, DbType = "datetime(0) NOT NULL")]
        [JsonProperty("updated")]
        public DateTime Updated { get; set; }
    }
}
